package org.ilead.iserve.service;

import java.util.List;

import org.ilead.iserve.model.PrivateMessage;

public interface IPrivateMessageService {
	void addMessage(PrivateMessage message);
	
	void updateMessage(PrivateMessage message);
	
	void deleteMessage(PrivateMessage message);
	
	void deleteMessageById(int messageId);
	
	List<PrivateMessage> findByUserIdAndState(int userId, int state);
	
	int findUnReadCountByUserId(int userId);
	
	PrivateMessage findById(int messageId);
}
